package model.vo;

import java.sql.Timestamp;

public class MessageVO {
    private Integer id;
    private Integer userId;
    private Integer goodsId;
    private String content;
    private String replyContent;
    private Integer state;
    private Timestamp createtime;
    private G goods;
    private U user;

    public static class G {
        private String name;
        public G() {}

        public G(String name) {
            this.name = name;
        }

        public String getName() {
            return name;
        }

        public void setName(String name) {
            this.name = name;
        }

        @Override
        public String toString() {
            return "G{" +
                    "name='" + name + '\'' +
                    '}';
        }
    }
    public static class U {
        private String name;
        public U() {}

        public U(String name) {
            this.name = name;
        }

        public String getName() {
            return name;
        }

        public void setName(String name) {
            this.name = name;
        }

        @Override
        public String toString() {
            return "U{" +
                    "name='" + name + '\'' +
                    '}';
        }
    }

    public G getGoods() {
        return goods;
    }

    public void setGoods(G goods) {
        this.goods = goods;
    }

    public U getUser() {
        return user;
    }

    public void setUser(U user) {
        this.user = user;
    }

    public MessageVO() {
    }

    public MessageVO(Integer id, Integer userId, Integer goodsId, String content, String replyContent, Integer state, Timestamp createtime, G goods, U user) {
        this.id = id;
        this.userId = userId;
        this.goodsId = goodsId;
        this.content = content;
        this.replyContent = replyContent;
        this.state = state;
        this.createtime = createtime;
        this.goods = goods;
        this.user = user;
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public Integer getUserId() {
        return userId;
    }

    public void setUserId(Integer userId) {
        this.userId = userId;
    }

    public Integer getGoodsId() {
        return goodsId;
    }

    public void setGoodsId(Integer goodsId) {
        this.goodsId = goodsId;
    }

    public String getContent() {
        return content;
    }

    public void setContent(String content) {
        this.content = content;
    }

    public String getReplyContent() {
        return replyContent;
    }

    public void setReplyContent(String replyContent) {
        this.replyContent = replyContent;
    }

    public Integer getState() {
        return state;
    }

    public void setState(Integer state) {
        this.state = state;
    }

    public Timestamp getCreatetime() {
        return createtime;
    }

    public void setCreatetime(Timestamp createtime) {
        this.createtime = createtime;
    }

    @Override
    public String toString() {
        return "MessageVO{" +
                "id=" + id +
                ", userId=" + userId +
                ", goodsId=" + goodsId +
                ", content='" + content + '\'' +
                ", replyContent='" + replyContent + '\'' +
                ", state=" + state +
                ", createtime=" + createtime +
                ", goods=" + goods +
                ", user=" + user +
                '}';
    }
}
